import re
str = '<div class = "name">中国</div>'
res = re.findall(r'<div class=".*">(.*?)</div>',str)
print(res)